package com.awanp3.nimbus.tool.asset.domain.vo;

import com.awanp3.nimbus.tool.asset.domain.Host;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.awanp3.nimbus.common.excel.annotation.ExcelDictFormat;
import com.awanp3.nimbus.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 主机视图对象 host
 *
 * @author 20014170
 * @date 2025-08-05
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Host.class)
public class HostVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 主机类型
     */
    @ExcelProperty(value = "主机类型")
    private String types;

    /**
     * 系统类型
     */
    @ExcelProperty(value = "系统类型")
    private String osType;

    /**
     * 系统架构
     */
    @ExcelProperty(value = "系统架构")
    private String archType;

    /**
     * 主机名称
     */
    @ExcelProperty(value = "主机名称")
    private String name;

    /**
     * 主机编码
     */
    @ExcelProperty(value = "主机编码")
    private String code;

    /**
     * 主机地址
     */
    @ExcelProperty(value = "主机地址")
    private String address;

    /**
     * 主机描述
     */
    @ExcelProperty(value = "主机描述")
    private String description;

    /**
     * 主机状态（0正常 1停用）
     */
    @ExcelProperty(value = "主机状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;


}
